<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>user login</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <form method="post" action="LoginServlet">
        <table>
            <tr>
                <td>用户名：
                <input type="text" name="username">
                </td>
            </tr>
            <tr>
                <td>密码：
                    <input type="password" name="password">
                </td>
            </tr>
            <tr>
                <td>
                    <button @click="login()" type="submit">登录</button>
                </td>
            </tr>
        </table>
    </form>
    <script>
        new Vue({
            el:"#app",
            methods:{
                login(){
                    alert("登录成功")
                }
            }
        })
    </script>
</body>
</html>
